/*
 * @description: 描述
 * @Author: 问道师兄木木木
 * @Date: 2021-01-29 19:00:30
 * @LastEditors: 问道师兄木木木
 * @LastEditTime: 2021-02-03 18:01:42
 */

 class Student{
     fullName: string;
     constructor(public firstName: string,public middleInitial: string,public lastName: string){
         this.fullName = `${firstName} ${middleInitial} ${lastName}`;
     }
 }

interface Person{
    firstName: string; 
    lastName: string;
}

function greeter(person: Person ){
    return `Hello，${person.firstName} ${person.lastName}`
}

// let user = "问道师兄木木木";
// let user = 11;

// let user = {
//     firstName: '刘克森',
//     lastName: '问道师兄木木木'
// };

let user: Person = new Student("Jane","M.","User");


let isDone: boolean = false;

console.log(greeter(user));
